package com.mbc.hr.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_EmployeeExperience")
@NamedQueries({
	@NamedQuery(name="EmployeeExperience.findByEmployeeID",query="SELECT ee FROM EmployeeExperience ee WHERE ee.employeeID = :employeeID"),
	@NamedQuery(name="EmployeeExperience.deleteByEmployeeID",query="DELETE FROM EmployeeExperience ee WHERE ee.employeeID = :employeeID")
})
public class EmployeeExperience implements Serializable {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long workingExperienceID;
	private long employeeID;
	private Date fromDate;
	private Date toDate;
	private String country;
	private String company;
	private String occupation;
	private double lastDrawSalary;
	public long getWorkingExperienceID() {
		return workingExperienceID;
	}
	public void setWorkingExperienceID(long workingExperienceID) {
		this.workingExperienceID = workingExperienceID;
	}
	public long getEmployeeID() {
		return employeeID;
	}
	public void setEmployeeId(long employeeID) {
		this.employeeID = employeeID;
	}
	public Date getFromDate() {
		return fromDate;
	}
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	public Date getToDate() {
		return toDate;
	}
	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getOccupation() {
		return occupation;
	}
	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}
	public double getLastDrawSalary() {
		return lastDrawSalary;
	}
	public void setLastDrawSalary(double lastDrawSalary) {
		this.lastDrawSalary = lastDrawSalary;
	}
}
